const Controller = require('egg').Controller

class LogController extends Controller {
  // 获取日志列表
  async getLogList() {
    const { ctx } = this
    const res = await ctx.service.cache.index.getLogList(ctx.query)
    if (res) {
      return ctx.renderBack(res)
    }
  }
}

module.exports = LogController
